package com.njwb.day15.zqzb.method.ann5;

import java.util.Properties;
public class Config {

    @MyReSource(name="db.properties")
    private String path;
    public static Properties properties = new Properties();

    public static void main(String[] args) {
        Config config  = new Config();
        Properties properties = MySourceLoadProcess.loadResource();
        System.out.println(properties.getProperty("driverClassName"));
        System.out.println(properties.getProperty("url"));
        System.out.println(properties.getProperty("username"));
        System.out.println(properties.getProperty("password"));

    }


}
